﻿// JScript 文件
function CloseWindow(retOjbect)
{
    window.returnValue=retOjbect;
    window.close();
}

function mImportDlg(Url,width,height,Home,name)
{
    var obj = new Object();
         obj.name=name;
    var UrlTmp=escape(Url);
    returnValue =window.showModalDialog(Home + "WorkFlow/ShowDlg.aspx?url=" + UrlTmp ,obj,"scroll:0;status:0;help:1;resizable:1;dialogWidth:" + width + "px;dialogHeight:" + height + "px");    	
    if(returnValue == "true")
    {
        return true;
    }
    else
    {
        return false;
    }
}
function mOpenDlg(Url,width,height,Home,name)
{
    var obj = new Object();
         obj.name=name;
    var UrlTmp=escape(Url);
    returnValue =window.showModalDialog(Home + "WorkFlow/ShowDlg.aspx?url=" + UrlTmp ,obj,"scroll:0;status:0;help:1;resizable:1;dialogWidth:" + width + "px;dialogHeight:" + height + "px");    	
    
    if(returnValue!=null ){
        alert(returnValue);	
	    window.location.reload();	    
    }    	
}
function mOpenDlg2(Url,width,height,Home,name)
{
    var obj = new Object();
         obj.name=name;
    var UrlTmp=escape(Url);
    returnValue =window.showModalDialog(Home + "WorkFlow/ShowDlg.aspx?url=" + UrlTmp ,obj,"scroll:0;status:0;help:1;resizable:1;dialogWidth:" + width + "px;dialogHeight:" + height + "px");    	
    if(returnValue!=null){
        if(returnValue !='false')
        {
	        window.location.reload();	
	    }    
    }    	
}
function mOpenDlg3(Url,width,height,Home,name)
{
    var obj = new Object();
         obj.name=name;
    var UrlTmp=escape(Url);
    var retvalue = window.showModalDialog(Home + "WorkFlow/ShowDlg.aspx?url=" + UrlTmp ,obj,"scroll:0;status:0;help:1;resizable:1;dialogWidth:" + width + "px;dialogHeight:" + height + "px");    	
    if(retvalue != true)
    {
        return false;
    }
    return retvalue;
}
function mOpenDlgReturnObj(Url,width,height,Home,name)
{
    var obj = new Object();
         obj.name=name;
    var UrlTmp=escape(Url);
    var retvalue = window.showModalDialog(Home + "WorkFlow/ShowDlg.aspx?url=" + UrlTmp ,obj,"scroll:0;status:0;help:1;resizable:1;dialogWidth:" + width + "px;dialogHeight:" + height + "px");    	
    return retvalue;
}